package org.jeecg.cn.edu.scau.vm.review.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.jeecg.cn.edu.scau.vm.review.entity.VmSchedule;

@Mapper
public interface VmScheduleMapper extends BaseMapper<VmSchedule> {

    @Update("update `jeecg-boot`.vm_schedule " +
            "set review_msg = #{reviewMsg},reviewer_id = #{reviewerId},reviewer = #{reviewer},approve_status = #{approveStatus} " +
            "where id = #{id}")
    void updateApproveStatusAndMsg(@Param("id") String id,
                                   @Param("reviewMsg") String reviewMsg,
                                   @Param("reviewer") String reviewer,
                                   @Param("reviewerId") String reviewerId,
                                   @Param("approveStatus") Integer approveStatus);
}
